{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<!--BOOK_INFORMATION-->\n",
    "<a href=\"https://user-images.githubusercontent.com/19553554/71825144-2d568180-30d6-11ea-8ee0-63c849cfd934.png\" target=\"_blank\"><img align=\"left\" style=\"width: 76px; height: 100px; background: white; padding: 1px; border: 1px solid black; margin-right:10px;\"></a>\n",
    "*pyecharts 是一个用于生成 Echarts 图表的类库。Echarts 是百度开源的一个数据可视化 JS 库。用 Echarts 生成的图可视化效果非常棒，为了与 Python 进行对接，方便在 Python 中直接使用数据生成图，于是有人开发出了这个项目[GitHub](https://github.com/pyecharts/pyecharts) .*\n",
    "\n",
    "*Note.建议本程序在参看https://github.com/pyecharts/pyecharts 的安装步骤后再运行； 本程序所有的例子都是从官方提供的样例代码[GitHub](https://github.com/pyecharts/pyecharts-gallery)中提取的,如果对某个API有疑问建议在IDE里面查看*\n",
    "\n",
    "*Echart类型图种大全:https://echarts.apache.org/examples/zh/#chart-type-line pyecharts图导入到ppt中的方法:https://baijiahao.baidu.com/s?id=1663839456876951842&wfr=spider&for=pc.*\n",
    "\n",
    "*作者: LBQ; 时间:2020/7/24. 邮箱:779660843@qq.com*"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Ⅴ.日历"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 基础示例"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/fisadm/anaconda3/envs/detectron2/lib/python3.7/site-packages/pyecharts/charts/chart.py:14: PendingDeprecationWarning: pyecharts 所有图表类型将在 v1.9.0 版本开始强制使用 ChartItem 进行数据项配置 :)\n",
      "  super().__init__(init_opts=init_opts)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"ea5ffec00a864e00bc20108c02e67112\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_ea5ffec00a864e00bc20108c02e67112 = echarts.init(\n",
       "                    document.getElementById('ea5ffec00a864e00bc20108c02e67112'), 'white', {renderer: 'canvas'});\n",
       "                var option_ea5ffec00a864e00bc20108c02e67112 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"heatmap\",\n",
       "            \"coordinateSystem\": \"calendar\",\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"2020-01-01\",\n",
       "                    22391\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-02\",\n",
       "                    19178\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-03\",\n",
       "                    8820\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-04\",\n",
       "                    15765\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-05\",\n",
       "                    11996\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-06\",\n",
       "                    2522\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-07\",\n",
       "                    17691\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-08\",\n",
       "                    13955\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-09\",\n",
       "                    7284\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-10\",\n",
       "                    6918\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-11\",\n",
       "                    13263\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-12\",\n",
       "                    15211\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-13\",\n",
       "                    3274\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-14\",\n",
       "                    7055\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-15\",\n",
       "                    19384\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-16\",\n",
       "                    19816\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-17\",\n",
       "                    22599\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-18\",\n",
       "                    17961\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-19\",\n",
       "                    2909\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-20\",\n",
       "                    8292\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-21\",\n",
       "                    7779\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-22\",\n",
       "                    4844\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-23\",\n",
       "                    4826\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-24\",\n",
       "                    13529\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-25\",\n",
       "                    16501\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-26\",\n",
       "                    3753\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-27\",\n",
       "                    18920\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-28\",\n",
       "                    10001\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-29\",\n",
       "                    20796\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-30\",\n",
       "                    16571\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-31\",\n",
       "                    9310\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-01\",\n",
       "                    6561\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-02\",\n",
       "                    14446\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-03\",\n",
       "                    12982\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-04\",\n",
       "                    5273\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-05\",\n",
       "                    18038\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-06\",\n",
       "                    20427\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-07\",\n",
       "                    15643\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-08\",\n",
       "                    1221\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-09\",\n",
       "                    21752\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-10\",\n",
       "                    18283\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-11\",\n",
       "                    3860\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-12\",\n",
       "                    4656\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-13\",\n",
       "                    18448\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-14\",\n",
       "                    6584\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-15\",\n",
       "                    4598\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-16\",\n",
       "                    19858\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-17\",\n",
       "                    24477\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-18\",\n",
       "                    16144\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-19\",\n",
       "                    17779\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-20\",\n",
       "                    5889\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-21\",\n",
       "                    9424\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-22\",\n",
       "                    16043\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-23\",\n",
       "                    5165\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-24\",\n",
       "                    22855\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-25\",\n",
       "                    9063\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-26\",\n",
       "                    18702\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-27\",\n",
       "                    4390\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-28\",\n",
       "                    10877\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-29\",\n",
       "                    5004\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-01\",\n",
       "                    3198\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-02\",\n",
       "                    7289\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-03\",\n",
       "                    18358\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-04\",\n",
       "                    19906\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-05\",\n",
       "                    11847\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-06\",\n",
       "                    15448\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-07\",\n",
       "                    3643\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-08\",\n",
       "                    11916\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-09\",\n",
       "                    19068\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-10\",\n",
       "                    14181\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-11\",\n",
       "                    10882\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-12\",\n",
       "                    19044\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-13\",\n",
       "                    20952\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-14\",\n",
       "                    10000\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-15\",\n",
       "                    12909\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-16\",\n",
       "                    13387\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-17\",\n",
       "                    2139\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-18\",\n",
       "                    10541\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-19\",\n",
       "                    15016\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-20\",\n",
       "                    17040\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-21\",\n",
       "                    4965\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-22\",\n",
       "                    4885\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-23\",\n",
       "                    13983\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-24\",\n",
       "                    15246\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-25\",\n",
       "                    11446\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-26\",\n",
       "                    6945\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-27\",\n",
       "                    8213\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-28\",\n",
       "                    20001\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-29\",\n",
       "                    11410\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-30\",\n",
       "                    6189\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-31\",\n",
       "                    14849\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-01\",\n",
       "                    20398\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-02\",\n",
       "                    23561\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-03\",\n",
       "                    16570\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-04\",\n",
       "                    4884\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-05\",\n",
       "                    23651\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-06\",\n",
       "                    22776\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-07\",\n",
       "                    1990\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-08\",\n",
       "                    14630\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-09\",\n",
       "                    23954\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-10\",\n",
       "                    3845\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-11\",\n",
       "                    22953\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-12\",\n",
       "                    6711\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-13\",\n",
       "                    9577\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-14\",\n",
       "                    24783\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-15\",\n",
       "                    13975\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-16\",\n",
       "                    12331\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-17\",\n",
       "                    10358\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-18\",\n",
       "                    2381\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-19\",\n",
       "                    1532\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-20\",\n",
       "                    3800\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-21\",\n",
       "                    12832\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-22\",\n",
       "                    1472\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-23\",\n",
       "                    24808\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-24\",\n",
       "                    3415\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-25\",\n",
       "                    4730\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-26\",\n",
       "                    7495\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-27\",\n",
       "                    21237\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-28\",\n",
       "                    24382\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-29\",\n",
       "                    2287\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-30\",\n",
       "                    16350\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-01\",\n",
       "                    21947\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-02\",\n",
       "                    23522\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-03\",\n",
       "                    2112\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-04\",\n",
       "                    11515\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-05\",\n",
       "                    13478\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-06\",\n",
       "                    22365\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-07\",\n",
       "                    16920\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-08\",\n",
       "                    12732\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-09\",\n",
       "                    24692\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-10\",\n",
       "                    6896\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-11\",\n",
       "                    4214\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-12\",\n",
       "                    21361\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-13\",\n",
       "                    22620\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-14\",\n",
       "                    14103\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-15\",\n",
       "                    17753\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-16\",\n",
       "                    13906\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-17\",\n",
       "                    7769\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-18\",\n",
       "                    5643\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-19\",\n",
       "                    14645\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-20\",\n",
       "                    4759\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-21\",\n",
       "                    9106\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-22\",\n",
       "                    5730\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-23\",\n",
       "                    8715\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-24\",\n",
       "                    6675\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-25\",\n",
       "                    11875\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-26\",\n",
       "                    15513\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-27\",\n",
       "                    3866\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-28\",\n",
       "                    16150\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-29\",\n",
       "                    3798\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-30\",\n",
       "                    15843\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-31\",\n",
       "                    18214\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-01\",\n",
       "                    7548\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-02\",\n",
       "                    13736\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-03\",\n",
       "                    9485\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-04\",\n",
       "                    12979\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-05\",\n",
       "                    4916\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-06\",\n",
       "                    23426\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-07\",\n",
       "                    22930\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-08\",\n",
       "                    4553\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-09\",\n",
       "                    21619\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-10\",\n",
       "                    3354\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-11\",\n",
       "                    22906\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-12\",\n",
       "                    19995\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-13\",\n",
       "                    21162\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-14\",\n",
       "                    20974\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-15\",\n",
       "                    20027\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-16\",\n",
       "                    7891\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-17\",\n",
       "                    1312\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-18\",\n",
       "                    22629\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-19\",\n",
       "                    8498\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-20\",\n",
       "                    24902\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-21\",\n",
       "                    1098\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-22\",\n",
       "                    5423\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-23\",\n",
       "                    10241\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-24\",\n",
       "                    7809\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-25\",\n",
       "                    17877\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-26\",\n",
       "                    8233\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-27\",\n",
       "                    1143\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-28\",\n",
       "                    22835\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-29\",\n",
       "                    5084\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-30\",\n",
       "                    19464\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-01\",\n",
       "                    14368\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-02\",\n",
       "                    10166\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-03\",\n",
       "                    12741\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-04\",\n",
       "                    8226\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-05\",\n",
       "                    5384\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-06\",\n",
       "                    4941\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-07\",\n",
       "                    7800\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-08\",\n",
       "                    24283\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-09\",\n",
       "                    1424\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-10\",\n",
       "                    5816\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-11\",\n",
       "                    24035\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-12\",\n",
       "                    19490\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-13\",\n",
       "                    2184\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-14\",\n",
       "                    18618\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-15\",\n",
       "                    11444\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-16\",\n",
       "                    8558\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-17\",\n",
       "                    15210\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-18\",\n",
       "                    14916\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-19\",\n",
       "                    23341\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-20\",\n",
       "                    16922\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-21\",\n",
       "                    18759\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-22\",\n",
       "                    3531\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-23\",\n",
       "                    6858\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-24\",\n",
       "                    22647\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-25\",\n",
       "                    19654\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-26\",\n",
       "                    14368\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-27\",\n",
       "                    6892\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-28\",\n",
       "                    6008\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-29\",\n",
       "                    5229\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-30\",\n",
       "                    23243\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-31\",\n",
       "                    4964\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-01\",\n",
       "                    6259\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-02\",\n",
       "                    18157\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-03\",\n",
       "                    21479\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-04\",\n",
       "                    1785\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-05\",\n",
       "                    13841\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-06\",\n",
       "                    24198\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-07\",\n",
       "                    19794\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-08\",\n",
       "                    23062\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-09\",\n",
       "                    21039\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-10\",\n",
       "                    1778\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-11\",\n",
       "                    22243\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-12\",\n",
       "                    1506\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-13\",\n",
       "                    20677\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-14\",\n",
       "                    6341\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-15\",\n",
       "                    13503\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-16\",\n",
       "                    3058\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-17\",\n",
       "                    13564\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-18\",\n",
       "                    19476\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-19\",\n",
       "                    11419\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-20\",\n",
       "                    15137\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-21\",\n",
       "                    15040\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-22\",\n",
       "                    24763\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-23\",\n",
       "                    20085\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-24\",\n",
       "                    22210\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-25\",\n",
       "                    11204\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-26\",\n",
       "                    9783\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-27\",\n",
       "                    20218\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-28\",\n",
       "                    7756\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-29\",\n",
       "                    12324\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-30\",\n",
       "                    10544\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-31\",\n",
       "                    24950\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-01\",\n",
       "                    18730\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-02\",\n",
       "                    7545\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-03\",\n",
       "                    1976\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-04\",\n",
       "                    8205\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-05\",\n",
       "                    17882\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-06\",\n",
       "                    1493\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-07\",\n",
       "                    22781\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-08\",\n",
       "                    12802\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-09\",\n",
       "                    15142\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-10\",\n",
       "                    9138\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-11\",\n",
       "                    9334\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-12\",\n",
       "                    22765\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-13\",\n",
       "                    8928\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-14\",\n",
       "                    3209\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-15\",\n",
       "                    10992\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-16\",\n",
       "                    2730\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-17\",\n",
       "                    24701\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-18\",\n",
       "                    9789\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-19\",\n",
       "                    24108\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-20\",\n",
       "                    14936\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-21\",\n",
       "                    18808\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-22\",\n",
       "                    13571\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-23\",\n",
       "                    14618\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-24\",\n",
       "                    10315\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-25\",\n",
       "                    20173\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-26\",\n",
       "                    24438\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-27\",\n",
       "                    15682\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-28\",\n",
       "                    22419\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-29\",\n",
       "                    15793\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-30\",\n",
       "                    18969\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-01\",\n",
       "                    22490\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-02\",\n",
       "                    19942\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-03\",\n",
       "                    17940\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-04\",\n",
       "                    8145\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-05\",\n",
       "                    20441\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-06\",\n",
       "                    12376\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-07\",\n",
       "                    13887\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-08\",\n",
       "                    21059\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-09\",\n",
       "                    14077\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-10\",\n",
       "                    9345\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-11\",\n",
       "                    11839\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-12\",\n",
       "                    2589\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-13\",\n",
       "                    19483\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-14\",\n",
       "                    16822\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-15\",\n",
       "                    20200\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-16\",\n",
       "                    13050\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-17\",\n",
       "                    12752\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-18\",\n",
       "                    24559\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-19\",\n",
       "                    7962\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-20\",\n",
       "                    3015\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-21\",\n",
       "                    23430\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-22\",\n",
       "                    6941\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-23\",\n",
       "                    9656\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-24\",\n",
       "                    7491\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-25\",\n",
       "                    22947\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-26\",\n",
       "                    11928\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-27\",\n",
       "                    9471\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-28\",\n",
       "                    4636\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-29\",\n",
       "                    10174\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-30\",\n",
       "                    1293\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-31\",\n",
       "                    18476\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-01\",\n",
       "                    4156\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-02\",\n",
       "                    3124\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-03\",\n",
       "                    16967\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-04\",\n",
       "                    4296\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-05\",\n",
       "                    20379\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-06\",\n",
       "                    11437\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-07\",\n",
       "                    1292\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-08\",\n",
       "                    16760\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-09\",\n",
       "                    12603\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-10\",\n",
       "                    20199\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-11\",\n",
       "                    5309\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-12\",\n",
       "                    7960\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-13\",\n",
       "                    18992\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-14\",\n",
       "                    23066\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-15\",\n",
       "                    8633\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-16\",\n",
       "                    22919\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-17\",\n",
       "                    15191\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-18\",\n",
       "                    18136\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-19\",\n",
       "                    4504\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-20\",\n",
       "                    15837\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-21\",\n",
       "                    21368\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-22\",\n",
       "                    22079\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-23\",\n",
       "                    12965\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-24\",\n",
       "                    24279\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-25\",\n",
       "                    14734\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-26\",\n",
       "                    2086\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-27\",\n",
       "                    19719\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-28\",\n",
       "                    15950\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-29\",\n",
       "                    5707\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-30\",\n",
       "                    17291\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-01\",\n",
       "                    3296\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-02\",\n",
       "                    19279\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-03\",\n",
       "                    2580\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-04\",\n",
       "                    2615\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-05\",\n",
       "                    12156\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-06\",\n",
       "                    2640\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-07\",\n",
       "                    2591\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-08\",\n",
       "                    19597\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-09\",\n",
       "                    15822\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-10\",\n",
       "                    8491\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-11\",\n",
       "                    24194\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-12\",\n",
       "                    7124\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-13\",\n",
       "                    13371\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-14\",\n",
       "                    15692\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-15\",\n",
       "                    7379\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-16\",\n",
       "                    23562\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-17\",\n",
       "                    15719\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-18\",\n",
       "                    4628\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-19\",\n",
       "                    17569\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-20\",\n",
       "                    14826\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-21\",\n",
       "                    4422\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-22\",\n",
       "                    17086\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-23\",\n",
       "                    16009\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-24\",\n",
       "                    20644\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-25\",\n",
       "                    10013\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-26\",\n",
       "                    1761\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-27\",\n",
       "                    24666\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-28\",\n",
       "                    6905\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-29\",\n",
       "                    1457\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-30\",\n",
       "                    23266\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-31\",\n",
       "                    4132\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"calendar\": {\n",
       "        \"width\": \"auto\",\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"range\": \"2020\",\n",
       "        \"cellSize\": 20\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Calendar-2020\\u5e74\\u5fae\\u4fe1\\u6b65\\u6570\\u60c5\\u51b5\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"piecewise\",\n",
       "        \"min\": 500,\n",
       "        \"max\": 20000,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"left\": \"100px\",\n",
       "        \"top\": \"230px\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 14,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_ea5ffec00a864e00bc20108c02e67112.setOption(option_ea5ffec00a864e00bc20108c02e67112);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x7f41e014f470>"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import datetime\n",
    "import random\n",
    "\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Calendar\n",
    "\n",
    "\n",
    "begin = datetime.date(2020, 1, 1)\n",
    "end = datetime.date(2020, 12, 31)\n",
    "#print(datetime.timedelta(days=2))\n",
    "data = [\n",
    "    [str(begin + datetime.timedelta(days=i)), random.randint(1000, 25000)]#timedelta 理解为量纲为'天'的整形数\n",
    "    for i in range((end - begin).days + 1)\n",
    "]\n",
    "#print(data)\n",
    "\n",
    "c = (\n",
    "    Calendar()\n",
    "    .add(\"\", data, calendar_opts=opts.CalendarOpts(range_=\"2020\"))\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(title=\"Calendar-2020年微信步数情况\"),\n",
    "        visualmap_opts=opts.VisualMapOpts(\n",
    "            max_=20000,\n",
    "            min_=500,\n",
    "            orient=\"horizontal\",\n",
    "            is_piecewise=True,\n",
    "            pos_top=\"230px\",\n",
    "            pos_left=\"100px\",\n",
    "        ),\n",
    "    )\n",
    "    #.render(\"calendar_base.html\")\n",
    ")\n",
    "c.load_javascript()\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 日历(热力图形式)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/fisadm/anaconda3/envs/detectron2/lib/python3.7/site-packages/pyecharts/charts/chart.py:14: PendingDeprecationWarning: pyecharts 所有图表类型将在 v1.9.0 版本开始强制使用 ChartItem 进行数据项配置 :)\n",
      "  super().__init__(init_opts=init_opts)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"b5c1a930eb514bed9d83e809c112f33c\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_b5c1a930eb514bed9d83e809c112f33c = echarts.init(\n",
       "                    document.getElementById('b5c1a930eb514bed9d83e809c112f33c'), 'white', {renderer: 'canvas'});\n",
       "                var option_b5c1a930eb514bed9d83e809c112f33c = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"heatmap\",\n",
       "            \"coordinateSystem\": \"calendar\",\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"2020-01-01\",\n",
       "                    9578\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-02\",\n",
       "                    14881\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-03\",\n",
       "                    20909\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-04\",\n",
       "                    14628\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-05\",\n",
       "                    11723\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-06\",\n",
       "                    13196\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-07\",\n",
       "                    12158\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-08\",\n",
       "                    18913\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-09\",\n",
       "                    16461\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-10\",\n",
       "                    9166\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-11\",\n",
       "                    22794\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-12\",\n",
       "                    17447\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-13\",\n",
       "                    20430\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-14\",\n",
       "                    19067\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-15\",\n",
       "                    1457\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-16\",\n",
       "                    7338\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-17\",\n",
       "                    16437\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-18\",\n",
       "                    9481\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-19\",\n",
       "                    3162\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-20\",\n",
       "                    12033\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-21\",\n",
       "                    19872\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-22\",\n",
       "                    10524\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-23\",\n",
       "                    15348\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-24\",\n",
       "                    6730\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-25\",\n",
       "                    6671\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-26\",\n",
       "                    13436\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-27\",\n",
       "                    13815\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-28\",\n",
       "                    11740\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-29\",\n",
       "                    5051\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-30\",\n",
       "                    4880\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-01-31\",\n",
       "                    11858\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-01\",\n",
       "                    19163\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-02\",\n",
       "                    5177\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-03\",\n",
       "                    15284\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-04\",\n",
       "                    22370\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-05\",\n",
       "                    17175\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-06\",\n",
       "                    23438\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-07\",\n",
       "                    23028\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-08\",\n",
       "                    20879\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-09\",\n",
       "                    5959\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-10\",\n",
       "                    16609\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-11\",\n",
       "                    13942\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-12\",\n",
       "                    10001\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-13\",\n",
       "                    7324\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-14\",\n",
       "                    10029\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-15\",\n",
       "                    19214\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-16\",\n",
       "                    13696\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-17\",\n",
       "                    19434\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-18\",\n",
       "                    19657\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-19\",\n",
       "                    2627\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-20\",\n",
       "                    5274\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-21\",\n",
       "                    5664\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-22\",\n",
       "                    10490\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-23\",\n",
       "                    22539\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-24\",\n",
       "                    21255\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-25\",\n",
       "                    17111\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-26\",\n",
       "                    15643\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-27\",\n",
       "                    21724\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-28\",\n",
       "                    1617\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-02-29\",\n",
       "                    19421\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-01\",\n",
       "                    2561\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-02\",\n",
       "                    10600\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-03\",\n",
       "                    11203\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-04\",\n",
       "                    6325\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-05\",\n",
       "                    20955\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-06\",\n",
       "                    17766\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-07\",\n",
       "                    4767\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-08\",\n",
       "                    7715\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-09\",\n",
       "                    3473\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-10\",\n",
       "                    23540\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-11\",\n",
       "                    12811\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-12\",\n",
       "                    19365\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-13\",\n",
       "                    19615\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-14\",\n",
       "                    9664\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-15\",\n",
       "                    19214\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-16\",\n",
       "                    20785\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-17\",\n",
       "                    20832\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-18\",\n",
       "                    19725\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-19\",\n",
       "                    10427\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-20\",\n",
       "                    13948\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-21\",\n",
       "                    9046\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-22\",\n",
       "                    16097\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-23\",\n",
       "                    13804\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-24\",\n",
       "                    18356\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-25\",\n",
       "                    10294\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-26\",\n",
       "                    4646\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-27\",\n",
       "                    4918\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-28\",\n",
       "                    1003\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-29\",\n",
       "                    10265\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-30\",\n",
       "                    9425\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-03-31\",\n",
       "                    11074\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-01\",\n",
       "                    24669\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-02\",\n",
       "                    7590\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-03\",\n",
       "                    10767\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-04\",\n",
       "                    10472\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-05\",\n",
       "                    17636\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-06\",\n",
       "                    6463\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-07\",\n",
       "                    11813\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-08\",\n",
       "                    7275\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-09\",\n",
       "                    11531\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-10\",\n",
       "                    3117\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-11\",\n",
       "                    21928\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-12\",\n",
       "                    22213\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-13\",\n",
       "                    22165\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-14\",\n",
       "                    8617\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-15\",\n",
       "                    6906\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-16\",\n",
       "                    7679\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-17\",\n",
       "                    2889\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-18\",\n",
       "                    3497\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-19\",\n",
       "                    8514\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-20\",\n",
       "                    18830\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-21\",\n",
       "                    14415\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-22\",\n",
       "                    2621\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-23\",\n",
       "                    23261\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-24\",\n",
       "                    2124\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-25\",\n",
       "                    18055\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-26\",\n",
       "                    22955\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-27\",\n",
       "                    20099\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-28\",\n",
       "                    15965\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-29\",\n",
       "                    16001\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-04-30\",\n",
       "                    17344\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-01\",\n",
       "                    20723\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-02\",\n",
       "                    17600\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-03\",\n",
       "                    18881\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-04\",\n",
       "                    2591\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-05\",\n",
       "                    17487\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-06\",\n",
       "                    1960\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-07\",\n",
       "                    2791\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-08\",\n",
       "                    13073\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-09\",\n",
       "                    3312\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-10\",\n",
       "                    7217\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-11\",\n",
       "                    12435\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-12\",\n",
       "                    12933\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-13\",\n",
       "                    4010\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-14\",\n",
       "                    10937\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-15\",\n",
       "                    19288\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-16\",\n",
       "                    18468\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-17\",\n",
       "                    7285\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-18\",\n",
       "                    17407\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-19\",\n",
       "                    3786\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-20\",\n",
       "                    6384\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-21\",\n",
       "                    21568\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-22\",\n",
       "                    12203\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-23\",\n",
       "                    24296\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-24\",\n",
       "                    23846\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-25\",\n",
       "                    6303\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-26\",\n",
       "                    13121\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-27\",\n",
       "                    1547\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-28\",\n",
       "                    12051\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-29\",\n",
       "                    15272\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-30\",\n",
       "                    16724\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-05-31\",\n",
       "                    1518\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-01\",\n",
       "                    21540\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-02\",\n",
       "                    8223\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-03\",\n",
       "                    20809\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-04\",\n",
       "                    15522\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-05\",\n",
       "                    19854\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-06\",\n",
       "                    22049\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-07\",\n",
       "                    17318\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-08\",\n",
       "                    5015\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-09\",\n",
       "                    18493\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-10\",\n",
       "                    22268\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-11\",\n",
       "                    7486\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-12\",\n",
       "                    20974\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-13\",\n",
       "                    20218\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-14\",\n",
       "                    19110\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-15\",\n",
       "                    17911\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-16\",\n",
       "                    16644\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-17\",\n",
       "                    17662\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-18\",\n",
       "                    8079\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-19\",\n",
       "                    18910\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-20\",\n",
       "                    14032\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-21\",\n",
       "                    20273\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-22\",\n",
       "                    3790\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-23\",\n",
       "                    7944\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-24\",\n",
       "                    17574\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-25\",\n",
       "                    14981\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-26\",\n",
       "                    16276\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-27\",\n",
       "                    23711\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-28\",\n",
       "                    16687\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-29\",\n",
       "                    23002\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-06-30\",\n",
       "                    16436\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-01\",\n",
       "                    6239\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-02\",\n",
       "                    5931\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-03\",\n",
       "                    4840\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-04\",\n",
       "                    14988\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-05\",\n",
       "                    16214\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-06\",\n",
       "                    12439\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-07\",\n",
       "                    14561\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-08\",\n",
       "                    9451\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-09\",\n",
       "                    17965\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-10\",\n",
       "                    17017\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-11\",\n",
       "                    13389\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-12\",\n",
       "                    24977\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-13\",\n",
       "                    21437\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-14\",\n",
       "                    15976\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-15\",\n",
       "                    13017\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-16\",\n",
       "                    1923\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-17\",\n",
       "                    2925\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-18\",\n",
       "                    18792\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-19\",\n",
       "                    1185\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-20\",\n",
       "                    24547\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-21\",\n",
       "                    8690\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-22\",\n",
       "                    4531\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-23\",\n",
       "                    7321\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-24\",\n",
       "                    16016\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-25\",\n",
       "                    18402\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-26\",\n",
       "                    13638\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-27\",\n",
       "                    19401\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-28\",\n",
       "                    14893\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-29\",\n",
       "                    15316\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-30\",\n",
       "                    11309\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-07-31\",\n",
       "                    10793\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-01\",\n",
       "                    9536\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-02\",\n",
       "                    6796\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-03\",\n",
       "                    24475\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-04\",\n",
       "                    12407\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-05\",\n",
       "                    6313\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-06\",\n",
       "                    16077\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-07\",\n",
       "                    6677\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-08\",\n",
       "                    9462\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-09\",\n",
       "                    15212\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-10\",\n",
       "                    9117\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-11\",\n",
       "                    6919\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-12\",\n",
       "                    4636\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-13\",\n",
       "                    3177\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-14\",\n",
       "                    19574\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-15\",\n",
       "                    9380\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-16\",\n",
       "                    14872\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-17\",\n",
       "                    13454\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-18\",\n",
       "                    22074\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-19\",\n",
       "                    1279\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-20\",\n",
       "                    17950\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-21\",\n",
       "                    18750\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-22\",\n",
       "                    5151\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-23\",\n",
       "                    10575\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-24\",\n",
       "                    10072\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-25\",\n",
       "                    24639\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-26\",\n",
       "                    24445\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-27\",\n",
       "                    4327\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-28\",\n",
       "                    7791\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-29\",\n",
       "                    18511\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-30\",\n",
       "                    12134\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-08-31\",\n",
       "                    18147\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-01\",\n",
       "                    8537\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-02\",\n",
       "                    23924\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-03\",\n",
       "                    18781\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-04\",\n",
       "                    21823\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-05\",\n",
       "                    4353\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-06\",\n",
       "                    13108\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-07\",\n",
       "                    6743\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-08\",\n",
       "                    4368\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-09\",\n",
       "                    12908\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-10\",\n",
       "                    22691\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-11\",\n",
       "                    8268\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-12\",\n",
       "                    23048\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-13\",\n",
       "                    9032\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-14\",\n",
       "                    23385\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-15\",\n",
       "                    20953\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-16\",\n",
       "                    9183\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-17\",\n",
       "                    10923\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-18\",\n",
       "                    8627\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-19\",\n",
       "                    10588\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-20\",\n",
       "                    3086\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-21\",\n",
       "                    8007\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-22\",\n",
       "                    20436\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-23\",\n",
       "                    21040\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-24\",\n",
       "                    12468\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-25\",\n",
       "                    7280\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-26\",\n",
       "                    19679\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-27\",\n",
       "                    4228\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-28\",\n",
       "                    16416\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-29\",\n",
       "                    24537\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-09-30\",\n",
       "                    15780\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-01\",\n",
       "                    6511\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-02\",\n",
       "                    23026\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-03\",\n",
       "                    4062\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-04\",\n",
       "                    3417\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-05\",\n",
       "                    8681\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-06\",\n",
       "                    6919\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-07\",\n",
       "                    15245\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-08\",\n",
       "                    13157\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-09\",\n",
       "                    1058\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-10\",\n",
       "                    8980\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-11\",\n",
       "                    13937\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-12\",\n",
       "                    18632\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-13\",\n",
       "                    14288\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-14\",\n",
       "                    20067\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-15\",\n",
       "                    7335\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-16\",\n",
       "                    3346\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-17\",\n",
       "                    17186\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-18\",\n",
       "                    18198\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-19\",\n",
       "                    16172\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-20\",\n",
       "                    9299\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-21\",\n",
       "                    12516\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-22\",\n",
       "                    20312\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-23\",\n",
       "                    10142\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-24\",\n",
       "                    6850\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-25\",\n",
       "                    5456\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-26\",\n",
       "                    15209\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-27\",\n",
       "                    24038\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-28\",\n",
       "                    13491\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-29\",\n",
       "                    6008\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-30\",\n",
       "                    2127\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-10-31\",\n",
       "                    2897\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-01\",\n",
       "                    19718\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-02\",\n",
       "                    18909\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-03\",\n",
       "                    10792\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-04\",\n",
       "                    4409\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-05\",\n",
       "                    14224\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-06\",\n",
       "                    1030\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-07\",\n",
       "                    22627\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-08\",\n",
       "                    8886\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-09\",\n",
       "                    1461\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-10\",\n",
       "                    14848\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-11\",\n",
       "                    6643\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-12\",\n",
       "                    17059\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-13\",\n",
       "                    19998\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-14\",\n",
       "                    14451\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-15\",\n",
       "                    8953\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-16\",\n",
       "                    22614\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-17\",\n",
       "                    21681\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-18\",\n",
       "                    22691\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-19\",\n",
       "                    5816\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-20\",\n",
       "                    8549\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-21\",\n",
       "                    14679\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-22\",\n",
       "                    6862\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-23\",\n",
       "                    15073\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-24\",\n",
       "                    22336\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-25\",\n",
       "                    12719\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-26\",\n",
       "                    8145\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-27\",\n",
       "                    23376\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-28\",\n",
       "                    20656\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-29\",\n",
       "                    9188\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-11-30\",\n",
       "                    20117\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-01\",\n",
       "                    15546\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-02\",\n",
       "                    16558\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-03\",\n",
       "                    8478\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-04\",\n",
       "                    1384\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-05\",\n",
       "                    13600\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-06\",\n",
       "                    14407\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-07\",\n",
       "                    9923\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-08\",\n",
       "                    12035\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-09\",\n",
       "                    3821\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-10\",\n",
       "                    20490\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-11\",\n",
       "                    5397\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-12\",\n",
       "                    5653\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-13\",\n",
       "                    2726\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-14\",\n",
       "                    24855\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-15\",\n",
       "                    18774\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-16\",\n",
       "                    2115\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-17\",\n",
       "                    21269\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-18\",\n",
       "                    14203\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-19\",\n",
       "                    23839\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-20\",\n",
       "                    19061\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-21\",\n",
       "                    7094\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-22\",\n",
       "                    22801\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-23\",\n",
       "                    10710\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-24\",\n",
       "                    23905\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-25\",\n",
       "                    7598\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-26\",\n",
       "                    6845\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-27\",\n",
       "                    24411\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-28\",\n",
       "                    20643\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-29\",\n",
       "                    19789\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-30\",\n",
       "                    18977\n",
       "                ],\n",
       "                [\n",
       "                    \"2020-12-31\",\n",
       "                    13702\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"calendar\": {\n",
       "        \"left\": \"30\",\n",
       "        \"top\": \"120\",\n",
       "        \"right\": \"30\",\n",
       "        \"width\": \"auto\",\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"range\": \"2020\",\n",
       "        \"cellSize\": 20,\n",
       "        \"yearLabel\": {\n",
       "            \"show\": false,\n",
       "            \"color\": \"#000\",\n",
       "            \"fontStyle\": \"normal\",\n",
       "            \"fontWeight\": \"normal\",\n",
       "            \"fontFamily\": \"sans-serif\",\n",
       "            \"fontSize\": 12\n",
       "        }\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2020\\u5e74\\u6b65\\u6570\\u60c5\\u51b5\",\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"30\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 500,\n",
       "        \"max\": 20000,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 140,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_b5c1a930eb514bed9d83e809c112f33c.setOption(option_b5c1a930eb514bed9d83e809c112f33c);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x7f41d8668c50>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "begin = datetime.date(2020, 1, 1)\n",
    "end = datetime.date(2020, 12, 31)\n",
    "data = [\n",
    "    [str(begin + datetime.timedelta(days=i)), random.randint(1000, 25000)]\n",
    "    for i in range((end - begin).days + 1)\n",
    "]\n",
    "\n",
    "cld_htm = (\n",
    "    Calendar()\n",
    "    .add(\n",
    "        series_name=\"\",\n",
    "        yaxis_data=data,\n",
    "        calendar_opts=opts.CalendarOpts(\n",
    "            pos_top=\"120\",\n",
    "            pos_left=\"30\",\n",
    "            pos_right=\"30\",#定位\n",
    "            range_=\"2020\",#确定年份\n",
    "            yearlabel_opts=opts.CalendarYearLabelOpts(is_show=False),\n",
    "        ),\n",
    "    )\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(pos_top=\"30\", pos_left=\"center\", title=\"2020年步数情况\"),\n",
    "        visualmap_opts=opts.VisualMapOpts(\n",
    "            max_=20000, min_=500, orient=\"horizontal\", is_piecewise=False#最大最小值，方向, 分段图还是热力图\n",
    "        ),\n",
    "    )\n",
    "    #.render(\"calendar_heatmap.html\")\n",
    ")\n",
    "cld_htm.load_javascript()\n",
    "cld_htm.render_notebook() "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 标签设置"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/fisadm/anaconda3/envs/detectron2/lib/python3.7/site-packages/pyecharts/charts/chart.py:14: PendingDeprecationWarning: pyecharts 所有图表类型将在 v1.9.0 版本开始强制使用 ChartItem 进行数据项配置 :)\n",
      "  super().__init__(init_opts=init_opts)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"7ce6830b38e84b4d88e56888ad04d699\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_7ce6830b38e84b4d88e56888ad04d699 = echarts.init(\n",
       "                    document.getElementById('7ce6830b38e84b4d88e56888ad04d699'), 'white', {renderer: 'canvas'});\n",
       "                var option_7ce6830b38e84b4d88e56888ad04d699 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"heatmap\",\n",
       "            \"coordinateSystem\": \"calendar\",\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"2017-01-01\",\n",
       "                    18162\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-02\",\n",
       "                    6419\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-03\",\n",
       "                    24073\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-04\",\n",
       "                    18324\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-05\",\n",
       "                    6883\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-06\",\n",
       "                    17382\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-07\",\n",
       "                    5198\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-08\",\n",
       "                    20502\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-09\",\n",
       "                    14445\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-10\",\n",
       "                    10482\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-11\",\n",
       "                    19126\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-12\",\n",
       "                    17227\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-13\",\n",
       "                    16945\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-14\",\n",
       "                    9580\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-15\",\n",
       "                    19177\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-16\",\n",
       "                    16324\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-17\",\n",
       "                    9636\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-18\",\n",
       "                    8787\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-19\",\n",
       "                    24310\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-20\",\n",
       "                    12651\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-21\",\n",
       "                    2593\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-22\",\n",
       "                    1927\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-23\",\n",
       "                    24572\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-24\",\n",
       "                    13191\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-25\",\n",
       "                    23674\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-26\",\n",
       "                    18991\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-27\",\n",
       "                    2496\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-28\",\n",
       "                    13248\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-29\",\n",
       "                    16505\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-30\",\n",
       "                    2188\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-01-31\",\n",
       "                    2399\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-01\",\n",
       "                    10898\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-02\",\n",
       "                    4957\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-03\",\n",
       "                    6457\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-04\",\n",
       "                    19702\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-05\",\n",
       "                    24496\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-06\",\n",
       "                    7502\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-07\",\n",
       "                    24040\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-08\",\n",
       "                    1716\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-09\",\n",
       "                    17963\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-10\",\n",
       "                    21836\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-11\",\n",
       "                    14546\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-12\",\n",
       "                    22282\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-13\",\n",
       "                    15064\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-14\",\n",
       "                    18470\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-15\",\n",
       "                    8936\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-16\",\n",
       "                    22363\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-17\",\n",
       "                    3405\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-18\",\n",
       "                    18254\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-19\",\n",
       "                    2012\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-20\",\n",
       "                    21677\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-21\",\n",
       "                    23006\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-22\",\n",
       "                    23733\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-23\",\n",
       "                    22843\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-24\",\n",
       "                    4608\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-25\",\n",
       "                    7414\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-26\",\n",
       "                    19261\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-27\",\n",
       "                    8683\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-02-28\",\n",
       "                    16911\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-01\",\n",
       "                    4312\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-02\",\n",
       "                    8683\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-03\",\n",
       "                    5124\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-04\",\n",
       "                    22118\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-05\",\n",
       "                    4450\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-06\",\n",
       "                    2065\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-07\",\n",
       "                    16284\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-08\",\n",
       "                    7834\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-09\",\n",
       "                    7510\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-10\",\n",
       "                    17314\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-11\",\n",
       "                    13555\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-12\",\n",
       "                    8178\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-13\",\n",
       "                    9364\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-14\",\n",
       "                    11888\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-15\",\n",
       "                    15396\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-16\",\n",
       "                    6071\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-17\",\n",
       "                    5477\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-18\",\n",
       "                    15422\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-19\",\n",
       "                    6936\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-20\",\n",
       "                    4921\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-21\",\n",
       "                    24278\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-22\",\n",
       "                    4668\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-23\",\n",
       "                    6144\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-24\",\n",
       "                    2302\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-25\",\n",
       "                    10975\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-26\",\n",
       "                    16779\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-27\",\n",
       "                    5873\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-28\",\n",
       "                    24627\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-29\",\n",
       "                    7999\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-30\",\n",
       "                    9003\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-03-31\",\n",
       "                    8319\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-01\",\n",
       "                    1910\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-02\",\n",
       "                    18052\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-03\",\n",
       "                    9439\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-04\",\n",
       "                    23674\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-05\",\n",
       "                    20404\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-06\",\n",
       "                    9369\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-07\",\n",
       "                    10200\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-08\",\n",
       "                    9450\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-09\",\n",
       "                    14118\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-10\",\n",
       "                    1701\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-11\",\n",
       "                    3411\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-12\",\n",
       "                    6178\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-13\",\n",
       "                    2734\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-14\",\n",
       "                    5273\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-15\",\n",
       "                    9851\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-16\",\n",
       "                    4652\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-17\",\n",
       "                    22108\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-18\",\n",
       "                    3464\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-19\",\n",
       "                    5569\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-20\",\n",
       "                    23553\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-21\",\n",
       "                    14456\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-22\",\n",
       "                    10843\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-23\",\n",
       "                    3978\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-24\",\n",
       "                    23009\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-25\",\n",
       "                    9225\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-26\",\n",
       "                    15433\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-27\",\n",
       "                    24128\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-28\",\n",
       "                    5578\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-29\",\n",
       "                    6867\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-04-30\",\n",
       "                    3788\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-01\",\n",
       "                    24737\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-02\",\n",
       "                    7867\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-03\",\n",
       "                    15672\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-04\",\n",
       "                    18294\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-05\",\n",
       "                    17155\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-06\",\n",
       "                    11551\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-07\",\n",
       "                    16871\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-08\",\n",
       "                    3135\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-09\",\n",
       "                    20934\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-10\",\n",
       "                    4045\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-11\",\n",
       "                    21966\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-12\",\n",
       "                    12661\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-13\",\n",
       "                    21569\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-14\",\n",
       "                    10906\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-15\",\n",
       "                    18095\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-16\",\n",
       "                    19506\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-17\",\n",
       "                    3762\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-18\",\n",
       "                    2573\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-19\",\n",
       "                    12742\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-20\",\n",
       "                    17594\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-21\",\n",
       "                    11846\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-22\",\n",
       "                    8743\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-23\",\n",
       "                    8561\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-24\",\n",
       "                    12001\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-25\",\n",
       "                    24055\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-26\",\n",
       "                    18414\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-27\",\n",
       "                    12454\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-28\",\n",
       "                    4055\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-29\",\n",
       "                    24951\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-30\",\n",
       "                    7577\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-05-31\",\n",
       "                    9592\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-01\",\n",
       "                    7262\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-02\",\n",
       "                    5145\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-03\",\n",
       "                    13650\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-04\",\n",
       "                    2420\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-05\",\n",
       "                    3796\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-06\",\n",
       "                    14192\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-07\",\n",
       "                    5533\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-08\",\n",
       "                    19199\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-09\",\n",
       "                    15991\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-10\",\n",
       "                    3703\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-11\",\n",
       "                    6276\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-12\",\n",
       "                    3034\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-13\",\n",
       "                    2321\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-14\",\n",
       "                    2541\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-15\",\n",
       "                    9606\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-16\",\n",
       "                    9134\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-17\",\n",
       "                    1098\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-18\",\n",
       "                    9030\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-19\",\n",
       "                    11312\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-20\",\n",
       "                    21153\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-21\",\n",
       "                    7237\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-22\",\n",
       "                    18616\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-23\",\n",
       "                    21364\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-24\",\n",
       "                    4925\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-25\",\n",
       "                    13021\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-26\",\n",
       "                    6557\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-27\",\n",
       "                    16142\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-28\",\n",
       "                    10681\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-29\",\n",
       "                    5084\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-06-30\",\n",
       "                    19885\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-01\",\n",
       "                    15379\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-02\",\n",
       "                    13053\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-03\",\n",
       "                    10359\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-04\",\n",
       "                    11010\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-05\",\n",
       "                    24844\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-06\",\n",
       "                    8860\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-07\",\n",
       "                    8216\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-08\",\n",
       "                    23699\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-09\",\n",
       "                    1993\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-10\",\n",
       "                    2994\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-11\",\n",
       "                    12291\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-12\",\n",
       "                    6192\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-13\",\n",
       "                    7740\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-14\",\n",
       "                    24201\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-15\",\n",
       "                    21994\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-16\",\n",
       "                    17219\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-17\",\n",
       "                    9827\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-18\",\n",
       "                    9235\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-19\",\n",
       "                    17832\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-20\",\n",
       "                    5694\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-21\",\n",
       "                    10028\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-22\",\n",
       "                    19693\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-23\",\n",
       "                    8422\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-24\",\n",
       "                    3612\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-25\",\n",
       "                    5202\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-26\",\n",
       "                    6751\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-27\",\n",
       "                    3091\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-28\",\n",
       "                    1487\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-29\",\n",
       "                    9781\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-30\",\n",
       "                    10093\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-07-31\",\n",
       "                    2790\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-01\",\n",
       "                    3167\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-02\",\n",
       "                    24762\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-03\",\n",
       "                    3200\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-04\",\n",
       "                    16720\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-05\",\n",
       "                    11735\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-06\",\n",
       "                    5409\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-07\",\n",
       "                    16000\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-08\",\n",
       "                    17868\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-09\",\n",
       "                    8734\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-10\",\n",
       "                    15121\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-11\",\n",
       "                    11878\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-12\",\n",
       "                    12232\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-13\",\n",
       "                    21480\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-14\",\n",
       "                    16555\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-15\",\n",
       "                    1212\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-16\",\n",
       "                    1601\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-17\",\n",
       "                    14385\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-18\",\n",
       "                    7549\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-19\",\n",
       "                    2713\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-20\",\n",
       "                    7507\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-21\",\n",
       "                    16267\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-22\",\n",
       "                    11063\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-23\",\n",
       "                    17763\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-24\",\n",
       "                    24363\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-25\",\n",
       "                    7996\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-26\",\n",
       "                    13329\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-27\",\n",
       "                    18870\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-28\",\n",
       "                    11139\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-29\",\n",
       "                    5378\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-30\",\n",
       "                    3656\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-08-31\",\n",
       "                    1024\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-01\",\n",
       "                    10282\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-02\",\n",
       "                    18174\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-03\",\n",
       "                    22902\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-04\",\n",
       "                    11577\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-05\",\n",
       "                    2317\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-06\",\n",
       "                    23950\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-07\",\n",
       "                    13991\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-08\",\n",
       "                    14624\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-09\",\n",
       "                    4577\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-10\",\n",
       "                    1066\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-11\",\n",
       "                    7312\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-12\",\n",
       "                    7138\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-13\",\n",
       "                    11066\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-14\",\n",
       "                    14641\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-15\",\n",
       "                    9739\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-16\",\n",
       "                    5992\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-17\",\n",
       "                    21102\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-18\",\n",
       "                    17872\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-19\",\n",
       "                    24710\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-20\",\n",
       "                    7740\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-21\",\n",
       "                    23161\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-22\",\n",
       "                    8987\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-23\",\n",
       "                    8984\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-24\",\n",
       "                    13259\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-25\",\n",
       "                    2114\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-26\",\n",
       "                    18632\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-27\",\n",
       "                    1219\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-28\",\n",
       "                    7565\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-29\",\n",
       "                    5058\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-09-30\",\n",
       "                    17863\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-01\",\n",
       "                    6000\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-02\",\n",
       "                    17098\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-03\",\n",
       "                    8876\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-04\",\n",
       "                    1539\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-05\",\n",
       "                    2138\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-06\",\n",
       "                    11497\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-07\",\n",
       "                    18102\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-08\",\n",
       "                    12955\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-09\",\n",
       "                    22183\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-10\",\n",
       "                    18356\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-11\",\n",
       "                    8030\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-12\",\n",
       "                    21092\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-13\",\n",
       "                    14820\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-14\",\n",
       "                    10240\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-15\",\n",
       "                    16408\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-16\",\n",
       "                    10033\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-17\",\n",
       "                    11845\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-18\",\n",
       "                    20916\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-19\",\n",
       "                    14615\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-20\",\n",
       "                    12994\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-21\",\n",
       "                    6899\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-22\",\n",
       "                    22387\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-23\",\n",
       "                    23777\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-24\",\n",
       "                    17091\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-25\",\n",
       "                    13487\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-26\",\n",
       "                    9642\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-27\",\n",
       "                    24990\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-28\",\n",
       "                    19020\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-29\",\n",
       "                    23996\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-30\",\n",
       "                    3630\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-10-31\",\n",
       "                    20429\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-01\",\n",
       "                    3851\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-02\",\n",
       "                    4782\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-03\",\n",
       "                    5733\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-04\",\n",
       "                    13909\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-05\",\n",
       "                    3111\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-06\",\n",
       "                    2516\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-07\",\n",
       "                    17659\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-08\",\n",
       "                    3539\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-09\",\n",
       "                    6779\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-10\",\n",
       "                    15101\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-11\",\n",
       "                    19083\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-12\",\n",
       "                    24673\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-13\",\n",
       "                    2154\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-14\",\n",
       "                    3765\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-15\",\n",
       "                    10838\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-16\",\n",
       "                    18338\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-17\",\n",
       "                    16017\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-18\",\n",
       "                    9719\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-19\",\n",
       "                    10873\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-20\",\n",
       "                    2616\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-21\",\n",
       "                    24599\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-22\",\n",
       "                    21482\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-23\",\n",
       "                    17007\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-24\",\n",
       "                    17871\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-25\",\n",
       "                    1831\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-26\",\n",
       "                    20698\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-27\",\n",
       "                    4935\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-28\",\n",
       "                    22252\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-29\",\n",
       "                    23764\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-11-30\",\n",
       "                    2243\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-01\",\n",
       "                    5119\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-02\",\n",
       "                    1006\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-03\",\n",
       "                    8038\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-04\",\n",
       "                    11007\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-05\",\n",
       "                    2384\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-06\",\n",
       "                    6283\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-07\",\n",
       "                    24514\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-08\",\n",
       "                    13469\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-09\",\n",
       "                    17379\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-10\",\n",
       "                    10429\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-11\",\n",
       "                    14846\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-12\",\n",
       "                    15937\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-13\",\n",
       "                    12419\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-14\",\n",
       "                    19675\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-15\",\n",
       "                    24387\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-16\",\n",
       "                    1425\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-17\",\n",
       "                    7491\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-18\",\n",
       "                    21507\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-19\",\n",
       "                    16317\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-20\",\n",
       "                    13595\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-21\",\n",
       "                    3778\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-22\",\n",
       "                    11601\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-23\",\n",
       "                    22011\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-24\",\n",
       "                    23525\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-25\",\n",
       "                    20793\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-26\",\n",
       "                    24780\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-27\",\n",
       "                    18816\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-28\",\n",
       "                    4716\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-29\",\n",
       "                    7954\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-30\",\n",
       "                    1445\n",
       "                ],\n",
       "                [\n",
       "                    \"2017-12-31\",\n",
       "                    20178\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"calendar\": {\n",
       "        \"width\": \"auto\",\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"range\": \"2017\",\n",
       "        \"cellSize\": 20,\n",
       "        \"dayLabel\": {\n",
       "            \"show\": true,\n",
       "            \"firstDay\": 0,\n",
       "            \"position\": \"start\",\n",
       "            \"nameMap\": \"cn\",\n",
       "            \"color\": \"#000\",\n",
       "            \"fontStyle\": \"normal\",\n",
       "            \"fontWeight\": \"normal\",\n",
       "            \"fontFamily\": \"sans-serif\",\n",
       "            \"fontSize\": 12\n",
       "        },\n",
       "        \"monthLabel\": {\n",
       "            \"show\": true,\n",
       "            \"position\": \"start\",\n",
       "            \"nameMap\": \"cn\",\n",
       "            \"color\": \"#000\",\n",
       "            \"fontStyle\": \"normal\",\n",
       "            \"fontWeight\": \"normal\",\n",
       "            \"fontFamily\": \"sans-serif\",\n",
       "            \"fontSize\": 12\n",
       "        }\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Calendar-2017\\u5e74\\u5fae\\u4fe1\\u6b65\\u6570\\u60c5\\u51b5(\\u4e2d\\u6587 Label)\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"piecewise\",\n",
       "        \"min\": 500,\n",
       "        \"max\": 20000,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"left\": \"100px\",\n",
       "        \"top\": \"230px\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 14,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_7ce6830b38e84b4d88e56888ad04d699.setOption(option_7ce6830b38e84b4d88e56888ad04d699);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x7f41c7c02908>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "begin = datetime.date(2017, 1, 1)\n",
    "end = datetime.date(2017, 12, 31)\n",
    "data = [\n",
    "    [str(begin + datetime.timedelta(days=i)), random.randint(1000, 25000)]\n",
    "    for i in range((end - begin).days + 1)\n",
    "]\n",
    "\n",
    "bqsz = (\n",
    "    Calendar()\n",
    "    .add(\n",
    "        \"\",\n",
    "        data,\n",
    "        calendar_opts=opts.CalendarOpts(\n",
    "            range_=\"2017\",\n",
    "            #日标签和月标签都设置为中文格式\n",
    "            daylabel_opts=opts.CalendarDayLabelOpts(name_map=\"cn\"),\n",
    "            monthlabel_opts=opts.CalendarMonthLabelOpts(name_map=\"cn\"),\n",
    "        ),\n",
    "    )\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(title=\"Calendar-2017年微信步数情况(中文 Label)\"),\n",
    "        visualmap_opts=opts.VisualMapOpts(\n",
    "            max_=20000,\n",
    "            min_=500,\n",
    "            orient=\"horizontal\",\n",
    "            is_piecewise=True,\n",
    "            pos_top=\"230px\",\n",
    "            pos_left=\"100px\",\n",
    "        ),\n",
    "    )\n",
    "    #.render(\"calendar_label_setting.html\")\n",
    ")\n",
    "bqsz.load_javascript()\n",
    "bqsz.render_notebook() "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
